%ifdef CONFIG
{
  "HostFeatures": ["AVX"],
  "RegData": {
    "XMM2":  ["0x0000000000000000", "0x0000000000000000", "0x0000000000000000", "0x0000000000000000"],
    "XMM3":  ["0x0000000041424344", "0x0000000051525354", "0x0000000000000000", "0x0000000000000000"],
    "XMM4":  ["0x0000616263646566", "0x0000717273747576", "0x0000000000000000", "0x0000000000000000"],
    "XMM5":  ["0x0041424344454647", "0x0051525354555657", "0x0000000000000000", "0x0000000000000000"],
    "XMM6":  ["0x30B131B232B333B4", "0x38B939BA3ABB3BBC", "0x0000000000000000", "0x0000000000000000"],
    "XMM7":  ["0x0000000000000000", "0x0000000000000000", "0x0000000000000000", "0x0000000000000000"],
    "XMM8":  ["0x0000000041424344", "0x0000000051525354", "0x0000000041424344", "0x0000000051525354"],
    "XMM9":  ["0x0000616263646566", "0x0000717273747576", "0x0000616263646566", "0x0000717273747576"],
    "XMM10": ["0x0041424344454647", "0x0051525354555657", "0x0041424344454647", "0x0051525354555657"],
    "XMM11": ["0x30B131B232B333B4", "0x38B939BA3ABB3BBC", "0x30B131B232B333B4", "0x38B939BA3ABB3BBC"],
    "XMM12": ["0x0020a121a222a323", "0x0028a929aa2aab2b", "0x0030b131b232b333", "0x0038b939ba3abb3b"]
  }
}
%endif

lea rdx, [rel .data]

vmovapd ymm0, [rdx]
vmovapd ymm1, [rdx + 32]
vmovapd ymm12, [rel .data2]

vpsrlq xmm2, xmm0, 64
vpsrlq xmm3, xmm0, 32
vpsrlq xmm4, xmm1, 16
vpsrlq xmm5, xmm0, 8
vpsrlq xmm6, xmm1, 1

vpsrlq ymm7, ymm0, 64
vpsrlq ymm8, ymm0, 32
vpsrlq ymm9, ymm1, 16
vpsrlq ymm10, ymm0, 8
vpsrlq ymm11, ymm1, 1

vpsrlq ymm12, ymm12, 0x9

hlt

align 32
.data:
dq 0x4142434445464748
dq 0x5152535455565758
dq 0x4142434445464748
dq 0x5152535455565758

dq 0x6162636465666768
dq 0x7172737475767778
dq 0x6162636465666768
dq 0x7172737475767778

.data2:
dq 0x4142434445464748, 0x5152535455565758, 0x6162636465666768, 0x7172737475767778
